{template 'header-company'}
<!--当前位置-->
<div class="location layout960">
	当前位置: <a href="{SITE_URL}">首页</a>&nbsp;»&nbsp; <a href="{url('company/index')}">企业库</a>
</div>
<!--当前位置 end-->
<div class="layout960 fn-clear">
	<div class="layout-1of2 fn-left">
		<div class="company-hd">
			<h2>{$companyInfo[title]}</h2>
			{if id}
			<a class="company-edit" href="{SITE_URL}company/edit.php?id={$companyInfo[did]}">编辑企业</a>
			{/if}
		</div>
		<!--摘要start-->
		<div class="company-block">
			<div class="hd"><h3>企业名片</h3></div>
			<div class="desc c666 fn-clear">
				{if $companyInfo[company_thumb]}
					<img class="fn-left bd" src="{$companyInfo[company_thumb]}" width="100" height="100">
				{else}
					<img class="fn-left bd" src="{Picture::thumb($companyInfo[company_thumb],102,102)}" width="100" height="100">
				{/if}
				<p>{strip_tags($companyInfo[summary])}{if strlen($companyInfo[summary])>200}...{/if}</p>
				<!--<a class="edit-part fn-right" href="#">编辑摘要</a>-->
			</div>
		</div>
		<!--摘要 end-->
		<!--目录start-->
		<div class="catalog bd">
			<h4 class="hd">目录</h4>
			<ul>
				<li><a href="#information">企业档案</a></li>
				{loop $subtitles $k $title}
				<li><a href="#cat{$k}">{$title}</a></li>
				{/loop}
			</ul>
		</div>
		<!--目录end-->
		<!--企业档案start-->
		<div class="company-block">
			<div class="hd fn-clear">
				<a name="information"></a>
				<h3 class="fn-left">企业档案<a name="record"></a></h3>
				<!--<a class="edit-part fn-right" href="#">编辑本字段</a>-->
			</div>
			<div class="desc">
				<table class="record-tb">
                    <tr>
                        <th width="80">公司名称：</th>
                        <td class='left' colspan="4">{$companyInfo[title]}</td>
                    </tr>
					<tr>
						<th width="80">公司规模：</th>
						<td width="200">{$sizes[$companyInfo[company_size]]}</td>
						<td class="nobd"></td>
						<th width="80">所在地：</th>
						<td width="200">{area_pos($companyInfo[company_areaid],' / ')}</td>
					</tr>
                    <tr>
                        <th width="80">注册资本：</th>
                        <td width="200">{if $companyInfo[company_money]}{$companyInfo[company_money].万.$companyInfo[company_unit]}{/if}</td>
	                    <td class="nobd"></td>
	                    <th width="80">注册年份：</th>
	                    <td width="200">{if $companyInfo[company_year]}{$companyInfo[company_year]}年{/if}</td>
                    </tr>
					<tr>
                        <th width="80">联系人：</th>
                        <td width="200">{$companyInfo[company_contact]}</td>
                        <td class="nobd"></td>
						<th width="80">主要经营：</th>
						<td width="200">{$companyInfo[company_business]}</td>
                    </tr>
					<tr>
						<th width="80">电话：</th>
						<td width="200" id="jsTel">{$companyInfo[company_telephone]}</td>
						<td class="nobd"></td>
                        <th width="80">邮箱：</th>
                        <td width="200">{$companyInfo[company_mail]}</td>
                    </tr>
				</table>
                <script>
                    seajs.use(["jquery"],function(){
                        (function(){
                            if($("#jsTel").children("img").length<=0) return;
                            var imgWidth = $("#jsTel").children("img").width();
                            if(imgWidth > 190 ){
                                $("#jsTel").children("img").width(190);
                            }
                        })();
                    });
                </script>
			</div>
		</div>
		<!--企业档案 end-->
        <div class='company-block'>
            {$companyInfo[content]}
        </div>
	</div>
	<div class="doc-info bd layout-2of2 fn-right">
        <div class="content">
            <h2>企业库信息</h2>
	        {if CompanyAdmin::getEditionAudit($id)}
	        <p style="color: #f00;">该企业库存在未审核版本！</p>
	        {/if}
            <p>作者：{$companyInfo[author]}</p>
	        {if $companyInfo[time]}
            <p>更新时间：{date('Y-m-d H:i:s', $companyInfo[time])}</p>
	        {/if}
	        <p>
		        {if $topId}<a href="{SITE_URL}company/show.php?id={$topId}">上一个</a> {/if}
		        &nbsp;&nbsp;&nbsp;&nbsp;
		        {if $downId}<a href="{SITE_URL}company/show.php?id={$downId}">下一个</a>{/if}
	        </p>

        </div>
	</div>
</div>
<!--主体部分 end-->
{template 'footer'}